const {
	http
} = uni.$u


export const uploadFile = (config = {}) => http.upload('/sys/comm/upload', config)

export const login = (params, config = {}) => http.post('/app/customer/login', params, config); //登录

export const updateUser = (params, config = {}) => http.post('/app/customer/updateUser', params, config); //登录
export const updatePassword = (params, config = {}) => http.get('/app/customer/updatePassword', {params}, config); //修改密码




export const getProblemList = (params, config = {}) => http.post('/app/problem/list', params, config); // 问题列表
export const addProblem = (params, config = {}) => http.post('/app/problem/add', params, config); // 问题列表
export const dispatch = (params, config = {}) => http.post('/app/problem/dispatch', params, config); // 派单
export const detail = (params, config = {}) => http.post('/app/problem/detail', params, config); // 详情
export const complete = (params, config = {}) => http.post('/app/problem/complete', params, config); // 完成
export const transfer = (params, config = {}) => http.post('/app/problem/transfer', params, config); // 转单

export const myFeedbackList = (params, config = {}) => http.post('/app/problem/myFeedbackList', params, config); // 我的反馈


export const getProblemCount = (params, config = {}) => http.post('/app/problem/count', params, config); // 数量

export const projectList = (params, config = {}) => http.post('/app/problem/projectList', params, config); // 项目列表
export const workList = (params, config = {}) => http.post('/app/problem/workList', params, config); // 工号列表

export const progress = (params, config = {}) => http.post('/app/problem/progress', params, config); // 跟新进度
export const progressList = (params, config = {}) => http.post('/app/problem/progressList', params, config); // 问题时间线




// 消缺
export const getToDoTaskListPage = (params, config = {}) => http.post('/app/task/getToDoTaskListPage', params, config); // 转单
export const getToDoTaskById = (params, config = {}) => http.post('/app/task/getToDoTaskById', params, config); // 详情
export const completeTask = (params, config = {}) => http.post('/app/task/completeTask', params, config); // 完成任务

export const getToDoTaskCount = (params, config = {}) => http.post('/app/task/getToDoTaskCount', params, config); // 数量
export const submitTaskProblem = (params, config = {}) => http.post('/app/task/submitTaskProblem', params, config); // 单独提交

// 现场
export const getToDoProductServiceListPage = (params, config = {}) => http.post('/app/product/getToDoProductServiceListPage', params, config); // 转单
export const getProductServiceById = (params, config = {}) => http.post('/app/product/getProductServiceById', params, config); // 详情
export const completeProduct = (params, config = {}) => http.post('/app/product/completeProduct', params, config); // 完成任务
export const getStepByStepId = (params, config = {}) => http.post('/app/product/getStepByStepId', params, config); // 子节点详情
export const getToDoProductServiceCount = (params, config = {}) => http.post('/app/product/getToDoProductServiceCount', params, config); // 数量
export const getProductServiceByItemId = (params, config = {}) => http.post('/app/product/getProductServiceByItemId', params, config); // 子节点详情

export const getProductServiceFillList = (params, config = {}) => http.post('/app/product/getProductServiceFillList', params, config); // 填报记录

export const completeWorkOrder = (params, config = {}) => http.post('/app/product/completeWorkOrder', params, config); // 子节点详情

export const getMyProductServiceListPage = (params, config = {}) => http.post('/app/product/getMyProductServiceListPage', params, config); // 我的项目


export const getFileList = (params, config = {}) => http.post('/app/tool/getFileList', params, config); // 文件列表
export const getProductList = (params, config = {}) => http.post('/app/tool/getProductList', params, config);  // 工号
export const getDicts = (params, config = {}) => http.post('/app/tool/getDictList', params, config); // 字典
export const getProblemType = (params, config = {}) => http.post('/app/tool/getProblemType', params, config); // 字典
export const getUserList = (params, config = {}) => http.post('/app/tool/getUserList', params, config); // 人员
export const getProjectCategory = (params, config = {}) => http.post('/app/tool/getProjectCategory', params, config); // 资料分类
export const getProjectFileList = (params, config = {}) => http.post('/app/tool/getProjectFileList', params, config); // 资料列表




